﻿using Dashboard.Hubs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Dashboard.Controllers
{
	public class TestController : Controller
	{
		public ActionResult Index()
		{
			return View();
		}

		public ActionResult Login(string userName)
		{
			UserMonitor.RegisterUser(userName);
			return new HttpStatusCodeResult(System.Net.HttpStatusCode.OK);
		}

		public ActionResult Logout(string userName)
		{
			UserMonitor.UnregisterUser(userName);
			return new HttpStatusCodeResult(System.Net.HttpStatusCode.OK);
		}

	}
}